package com.wlr.study.version.jdk11;


import java.io.IOException;
import java.net.URI;
//import java.net.http.HttpClient;
//import java.net.http.HttpRequest;
//import java.net.http.HttpResponse;
import java.util.ArrayList;

/**
 * @author lerong.wang
 * @version 1.0.0
 * @description
 * @date 2024/12/3 19:31
 */
public class NewFeature {

    public static void testHttpClient() throws IOException, InterruptedException {
//        HttpClient client = HttpClient.newHttpClient();
//        HttpRequest request = HttpRequest.newBuilder()
//                .uri(URI.create("http://106.14.223.232:9001"))
//                .build();
//
//        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
//
//        System.out.println(response.statusCode());
//        System.out.println(response.body());
    }


    public static void testVar(){
//        var a = "String";
//        var nameList = new ArrayList<String>();
//        System.out.println(a);
    }
    public static void main(String[] args) throws IOException, InterruptedException {
        NewFeature.testVar();
        NewFeature.testHttpClient();
    }

}